package cn.yedong.org.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.yedong.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 实体类：
 */
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    @Excel(name="姓名",width = 30)
    private String name;
    /**
     * 店铺座机
     */
    @Excel(name="店铺座机",width = 30)
    private String tel;
    /**
     * 入驻时间
     */
    @JsonFormat(pattern ="yyyy-MM-dd",timezone ="GMT+8")
    @Excel(name="入驻时间",width = 40)
    private Date registerTime = new Date();
    /**
     * 店铺状态：1待审核，2审核通过待激活，3激活成功，4驳回
     */
    private Integer state = 1;
    /**
     * 店铺地址
     */
    @Excel(name="店铺地址",width = 50)
    private String address;
    /**
     * 店铺logo
     */
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;

    /**
     * 用于接收注册时店长信息；admin必须与前端保持一致
     */
    private Employee admin;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public Employee getAdmin() {
        return admin;
    }

    public void setAdmin(Employee admin) {
        this.admin = admin;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", registerTime=" + registerTime +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", logo='" + logo + '\'' +
                ", adminId=" + adminId +
                ", admin=" + admin +
                '}';
    }
}
